<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="keywords" content="" />
<meta name="descrption" content="" />
<title>layui</title>
<script src="../../../js/angular.js"></script>
<link rel="stylesheet" href="../../../layui/css/layui.css" media="all" />
<script src="../../../layui/layui.js" charset="utf-8"></script>
<script src="../../../js/angular.js" charset="utf-8"></script>
<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
<script type="text/javascript" src="fy.js"></script>

</head>
<body>
<br>
		
	<div ng-app="myApp" ng-controller="customersCtrl" align="center">
		
			<input type="button" ng-click="cx()" style="width: 15%" value="上&nbsp;传&nbsp;基&nbsp;数&nbsp;文&nbsp;件">
			<input type="button" ng-click="cx()" style="width: 15%" value="下&nbsp;载&nbsp;基&nbsp;数&nbsp;核&nbsp;定&nbsp;模&nbsp;板">
			
		<table class="layui-table" style="width:90%">
			<tr align="center" style="background-color:#f1f1f1">
				<td>姓名</td>
				<td>个人账号</td>
				<td>单位缴存比例</td>
				<td>个人缴存比例</td>
				<td>单位缴存额</td>
				<td>个人缴存额</td>
				<td>缴存基数</td>

			</tr>
			<tr ng-repeat="x in names" align="center">

				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.XingMing }}</td>
				<td ng-if="$even">{{ x.XingMing }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.GRZH }}</td>
				<td ng-if="$even">{{ x.GRZH }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.DWJCBL
					}}</td>
				<td ng-if="$even">{{ x.DWJCBL }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.GRJCBL
					}}</td>
				<td ng-if="$even">{{ x.GRJCBL }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.DWJCE
					}}</td>
				<td ng-if="$even">{{ x.DWJCE }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.GRJCE }}</td>
				<td ng-if="$even">{{ x.GRJCE }}</td>
				<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.JCJS }}</td>
				<td ng-if="$even">{{ x.JCJS }}</td>
			</tr>
		</table>
		<div class="layui-btn-group">
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Sy()">首页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Previous()">上一页</button>
			<button ng-repeat="page in pageList" class="layui-btn layui-btn-primary layui-btn-sm "
				ng-click="selectPage(page)" >{{page}}</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Next()">下一页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Wy()">尾页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm "
				>{{selPage}}/{{pages}}</button>
		</div>
  </div>
	<script type="text/javascript">
		function getPath() {
			return 'http://' + location.host;
		};
		var a;
		var app = angular.module('myApp', []);
		app.controller('customersCtrl', function($scope, $http) {
		
			$http.get(getPath() + "/wsyyt/dwhbjxxcontroller/test")
					.then(
							function(res) {
								$scope.data = res.data.data.RETDATA;//自己打断点看格式:[{},{}]
								a = res.data.CNT;
							feny($scope.data);
			});
		});
	</script>	
	
</body>
</html>